<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:cc="http://java.sun.com/jsf/composite"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:pe="http://primefaces.prime.com.tr/ui"
                xmlns:p="http://primefaces.org/ui">

    <cc:interface>
        <cc:attribute name="campo" required="true" />
    </cc:interface>

    <cc:implementation>
        <div style="#{cc.attrs.campo.diferente eq false ? 'display: none;' : ''}">
            <p:outputLabel value="#{cc.attrs.campo.descricao}" styleClass="grid_4 labelBold"/>
            <h:outputText value="#{empty cc.attrs.campo.vlrAtual ? '' : managerAtualizarImovel.exibir(cc.attrs.campo.vlrAtual, cc.attrs.campo.valueType)}" 
                          styleClass="grid_7"/>
            <p:selectOneButton value="#{cc.attrs.campo.usarAlteracao}" styleClass="grid_4 optionMergeButton" style="text-align: center" >
                <f:selectItem itemLabel="Não" itemValue="#{false}" />
                <f:selectItem itemLabel="Sim" itemValue="#{true}" />
            </p:selectOneButton>
            <h:outputText value="#{empty cc.attrs.campo.vlrAlteracao ? '' : managerAtualizarImovel.exibir(cc.attrs.campo.vlrAlteracao, cc.attrs.campo.valueType)}" styleClass="grid_7"/>
        </div>
        <div class="clear"/>

    </cc:implementation>
</ui:composition>